﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WinSFX : MonoBehaviour
{
    public float delay = 2f;
    // Start is called before the first frame update
    void OnEnable()
    {
        StartCoroutine(PlaySFX(delay));
        
    }
    IEnumerator PlaySFX(float delay=2f)
    {
        yield return new WaitForSeconds(delay);
        SFXManager.Instance.PlaySFX(Const.winSFX);
    }
}
